<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>显示模式之块级元素</title>
    <style>
        div {
            /* width: 200px; */
            /* 如果没有指定宽度，那么div就和他的父级body一样宽*/
            height: 200px;
            background-color: pink;
        }
    </style>
</head>

<body>
    <div>比较霸道，自己独占一行</div>在div下一行
</body>

</html>